import 'package:flutter/material.dart';
import 'package:wy/utils/screen_util.dart';

class Hheader extends StatelessWidget {
  const Hheader({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final screen = Screen(context);
    return Container(
      height: screen.calc(98),
      child: Row(
        children: [
          // 返回按钮
          GestureDetector(
              onTap: () {
                Navigator.pop(context);
              },
              child: Container(
                child: Image.asset('assets/images/icon-left-arrow-w.png',
                    width: screen.calc(50), height: screen.calc(50)),
              )),
          Expanded(
              child: Container(
                  padding: EdgeInsets.only(top: screen.calc(14)),
                  child: Column(
                    children: [
                      Text('Somewhere Only We Know',
                          style: TextStyle(
                              color: Colors.white,
                              fontSize: screen.calc(30),
                              fontWeight: FontWeight.w700)),
                      Padding(
                          padding: EdgeInsets.only(top: screen.calc(4)),
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: [
                              Text('Keane',
                                  style: TextStyle(color: Color(0x99ffffff))),
                              Image.asset(
                                  'assets/images/icon-right-arrow-w.png',
                                  width: screen.calc(20),
                                  height: screen.calc(20)),
                            ],
                          )),
                    ],
                  ))),
          Container(
            child: Image.asset('assets/images/icon-share-w.png',
                width: screen.calc(50), height: screen.calc(50)),
          ),
        ],
      ),
    );
  }
}
